<div id="form_leave">
	<div class="pc-nav form-nav">
		<button @click="back(-1)"><i class="icon iconfont">&#xe62b;</i></button>
		<span>合同审批</span>
	</div>
	<ul class="approval-form-wrap">
		<li>
			<em class="left"><span style="color: red;">*</span>合同编号</em>
			<i class="right">
				<input v-model="submitJson.component[0].value" type="text" placeholder="请输入(必填)" />
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[0].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>合同编号不能为空</p>
			</i>
		</li>
		<li>
			<em class="left"><span style="color: red;">*</span>签约日期</em>
			<i class="icon  right">
				<span class="datepicker">
					<vue-datepicker-local v-model="submitJson.component[1].value" placeholder="请输入(必填)" ></vue-datepicker-local>
				</span>
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[1].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>签约日期不能为空</p>
			</i>
		</li>
		<li>
			<em class="left"><span style="color: red;">*</span>我方单位名称</em>
			<i class="right">
				<input v-model="submitJson.component[2].value" type="text" placeholder="请输入(必填)" />
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[2].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>我方单位名称不能为空</p>
			</i>
		</li>
		<li>
			<em class="left">我方负责人</em>
			<i class="right">
				<input v-model="submitJson.component[3].value" type="text" placeholder="" />
			</i>
		</li>
		<li>
			<em class="left"><span style="color: red;">*</span>对方单位名称</em>
			<i class="right">
				<input v-model="submitJson.component[4].value" type="text" placeholder="请输入(必填)" />
			</i>
		</li>
		<li v-if="subFlag && /^\s*$/g.test(submitJson.component[4].value)">
			<em class="left"></em>
			<i class="right">
				<p style="color: red;" data-false='true'>我方单位名称不能为空</p>
			</i>
		</li>
		<li>
			<em class="left">对方负责人</em>
			<i class="right">
				<input v-model="submitJson.component[5].value" type="text" placeholder="" />
			</i>
		</li>
	</ul>
	<form-repeat class="approval-form-repeat approval-form-wrap" v-on:getrepeat="repeatFn" init='[{"name":"内容","value":""}]'>
		 <template slot-scope="props">
			<li>
				<em class="left"><span style="color: red;">*</span>内容</em>
				<i class="right">
					<textarea name="" rows="" cols="" v-model="props.o[0].value"placeholder="请输入(必填)"></textarea>
				</i>
			</li>
			<li v-if="subFlag && /^\s*$/g.test(props.o[0].value)">
				<em class="left"></em>
				<i class="right">
					<p style="color: red;" data-false='true'>内容不能为空</p>
				</i>
			</li>
			<li>
				<em class="left"></em>
				<i class="right">
					如有多个条款，请点击“增加明细”，然后输入
				</i>
			</li>
		</template>
	</form-repeat>
	<ul class="approval-form-wrap">
		<li>
			<em class="left">图片</em>
			<i class="right">
				<upload_tpl message="img" name="图片" v-on:getfile="getFilefn"></upload_tpl>
			</i>
		</li>
		<li>
			<em class="left">审批人</em>
			<i class="right">
				<dingding_users  v-on:getdingdinguser="getApproveUsers" message="approve" :approve_list="approve_list" :cc_list="cc_list" ></dingding_users>
			</i>
		</li>
		<li>
			<em class="left">抄送人</em>
			<i class="right">
				  <dingding_users v-on:getdingdinguser="getCopyUsers" :approve_list="approve_list" :cc_list="cc_list" message="cc"></dingding_users>
			</i>
		</li>
		<li>
			<em class="left"></em>
			<i class="right">
				  <span v-if="subFlag"></span>
				 <button class="submit-foot" @click="submitFn">提交</button>
			</i>
		</li>
	</ul>
</div>
